package com.funtl.apache.dubbo.item.dao;


import com.funtl.apache.dubbo.provider.item.api.domain.TbOrderItem;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbOrderItemDao {
    @Insert("INSERT INTO tb_order_item (user_id, order_id, order_item_id) VALUES(#{userId}, #{orderId}, #{orderItemId})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    int insert(TbOrderItem tbOrderItem);
}
